{% extends "layout.html" %}

{% block content %}
    {% set value='create article' if not update else 'edit article' %}

    <h2>{{ value.title() }}</h2>

    <form action="?{{ request.query_string }}" method=post>
    {{ form.hidden_tag() }}

    {{ form.title.label }}
    {{ form.title }}

    {{ form.body.label }}
    {{ form.body }} <br>

    <input id="submit" name="submit" class="btn btn-inverse" type="submit" value="{{ value.capitalize() }}">
   </form>

   <hr/>
{% endblock %}
